package org.magneato.infra;

import org.magneato.dto.Page;

public class AuthTimeGenerator implements Generator {

	@Override
	public String getId(Page page) {
		page.getCreateDate();

		return page.getName() + "-" + page.getViewTemplate() + "-"
				+ ((System.currentTimeMillis() - page.getCreateDate()) / (1000*60));
	}

}
